<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        function $(tagName){
            var elem = document.getElementsByTagName(tagName)[0];
            return elem;
        }
    </script>
</head>
<body>
    <h1 ondblclick="show()">一级标题</h1>
    
    <script>
    
        function show(){
            alert('dblclick');
        }
        $('h1').style.background = 'red';
        $('h1').onmouseover = function(){
            console.log("鼠标移入")
        }
        $('h1').onmousemove = function (){
            console.log('鼠标移动')
        }    
        $('h1').onmouseout = function (){
            console.log('鼠标移出')
        }
        
        </script>
</body>
</html>